﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>试题详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../static/css/font.css">
    <link rel="stylesheet" href="../../../static/css/weadmin.css">
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        .showleft {
            text-align: left;
            min-width: 150px;
        }
    </style>
</head>
<body>
    <div class="weadmin-body">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    试题编号：
                </label>
                <label id="EQID" class="layui-form-label showleft">
                </label>
                <label class="layui-form-label">
                    试题类型：
                </label>
                <label id="ETName" class="layui-form-label showleft">
                </label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    问题：
                </label>
                <label id="EQContent" class="layui-form-label showleft">
                </label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    知识点：
                </label>
                <label id="KKName" class="layui-form-label showleft">
                </label>
                <label class="layui-form-label">
                    试题分数：
                </label>
                <label id="EQScore" class="layui-form-label showleft">
                </label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    积分：
                </label>
                <label id="EQIntegral" class="layui-form-label showleft">
                </label>
                <!--<label class="layui-form-label">
                    使用次数：
                </label>
                <label id="EQUseCount" class="layui-form-label showleft">
                </label>-->
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    答案：
                </label>
                <label id="EQAnswer" class="layui-form-label showleft">
                </label>
            </div>
        </form>
    </div>
    <script src="../../../lib/layui/layui.js" charset="utf-8"></script>
    <script src="../../../static/js/common.js" charset="utf-8"></script>
    <script>
        layui.use(['jquery', 'layer'], function () {
            var $ = layui.jquery,
                layer = layui.layer;
            $.support.cors = true;
            $.ajaxSetup({
                cache: false,
                headers: {
                    "userid": JSON.parse(window.localStorage.authInfo).UserId,
                    "signtoken": JSON.parse(window.localStorage.authInfo).SignToken,
                },
            })

            $(function () {
                var postdata = {'EQID': getUrlParam("EQID"),};
                //发异步，把数据提交给后台
                $.post(ApiUrl + 'ExamQuestions/getmodel', postdata, function (data) {
                    if (data.StatusCode == 200 && data.Count != 0) {
                        var examqutions = data.Data[0];
                        $("#EQID").html(examqutions.EQID);
                        $("#ETName").html(examqutions.ETName);
                        $("#KKName").html(examqutions.KKName);
                        $("#EQContent").html(examqutions.EQContent);
                        $("#EQAnswer").html(examqutions.EQAnswer);
                        $("#EQScore").html(examqutions.EQScore);
                        $("#EQIntegral").html(examqutions.EQIntegral);
                        //$("#EQUseCount").html(examqutions.EQUseCount); 
                    }
                    else {
                        layer.msg(data.Info);
                    }
                })
            })
        });
    </script>
</body>
</html>